/*******************************************************************************
 * Copyright (c) 2010, 2030 www.itlaobing.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.itlaobing.model;

import java.io.Serializable;
import java.util.Date;


/** 
 * ClassName: OrderModel <br/> 
 * Function: 订单实体类 <br/> 
 * date: 2017年11月1日 下午2:39:33 <br/> 
 * 
 * @author wd
 * @version  
 * @since JDK 1.8 
 */
public class OrderModel implements Serializable {
	private Integer id;
	private String orderId;
	private Date buyTime;
	private Integer userId;
	private Double totalMoney;
	private OrderStatus status=OrderStatus.NO_PAYMENT;
	private OrderSources sources=OrderSources.WEB_SIDE;
	private String receiverName;
	private String receiverPhone;
	private String address;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Date buyTime) {
        this.buyTime = buyTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }


    public OrderStatus getStatus() {
        return status;
    }

    public void setStatus(OrderStatus status) {
        this.status = status;
    }

    public OrderSources getSources() {
        return sources;
    }

    public void setSources(OrderSources sources) {
        this.sources = sources;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public OrderModel() {
        super();
    }

    @Override
    public String toString() {
        return "OrderModel{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", buyTime=" + buyTime +
                ", userId=" + userId +
                ", totalMoney=" + totalMoney +
                ", orderStatus=" + status +
                ", orderSources=" + sources +
                ", receiverName='" + receiverName + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
